package com.company.exam7;

/**
 * 第7题  利用多线程模拟银行存钱与取钱操作。（30分）
 */
public class UserDraw extends Thread{

	Account account;
	double money;

	public UserDraw(Account account,double money){
		this.account=account;
		this.money=money;
	}


	public void run(){
		account.draw(money);
	}
}